package com.omg.business.service;

import java.util.Date;
import java.util.UUID;

import com.omg.business.model.RecommendInfo;
import com.omg.server.framework.dao.FacadeDAO;
import com.omg.util.ApplicationContextUtil;

public class SaveService {

	public String saveRecommendInfo(RecommendInfo info){
		FacadeDAO facadeDao = (FacadeDAO)ApplicationContextUtil.getBean("facadeDAO");
		info.setId(UUID.randomUUID().toString());
		info.setCreateTime(new Date());
		info.setStatus("pending");
		facadeDao.save_Hibernate_Object(info);
		return "0";
	}
}
